package com.financing.wap.web.controller.tryApi;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

import com.financing.wap.common.SqlName;

/**
 * 为快速开发运营测试用案例，此处不再严格遵循MVC模式，请开发者注意
 * @author ios
 *
 */
public class BaseTryController  {

	@Resource(name = "sqlMapClientTemplate")
	protected SqlMapClientTemplate sqlMapClientTemplate;
	protected Logger log = LoggerFactory.getLogger(this.getClass());
	
	protected final static SqlName sqlName = new SqlName();

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}
	
	public String getUUID(){
		return (String)this.getSqlMapClientTemplate().queryForObject(SqlName.QUERY_UUID);
	}
	
}
